package com.linzp.bishe.model;

import com.linzp.bishe.entity.Accounts;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName LoginUser
 * @Description 存用户的Token
 * @Author LinZePeng
 * @Date 2021/12/12 18:04
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser {


	private Accounts account;

	/**
	 * 用户唯一标识
	 */
	private String token;
	/**
	 * 登录时间
	 */
	private Long loginTime;

	/**
	 * 过期时间
	 */
	private Long expireTime;

	public LoginUser(Accounts account) {
		this.account = account;
	}
}
